 const router = {     //定义路由对象
    home: {          //对象形式
        path: '/',
        name: 'Home',
        component: () => import('../views/Home.vue')
    },
    about: {
        path: '/about',
        name: 'About',
        component: () => import('../views/About.vue')
    },
    cart: {
        path: '/cart',
        name: 'cart',
        component: () => import('../views/cart.vue')
    },
    tabbar: {
        path: '/tabbar',
        name: 'tabbar',
        component: () => import('../views/tabbar.vue'),
        children:[]
    },
}

export default router     //导出